package highlighter.ast.impl;

import highlighter.visitor.IASTVisitor;

public class DeclareStmt extends Statement {

	private Modifier modif;
	private VarType varType;
	private Identifier id;
	private boolean isStatic;
	private boolean isFinal;
	
	public DeclareStmt(Modifier modif, VarType varType,Identifier id, boolean isStatic, boolean isFinal) {
		this.modif = modif;
		this.varType = varType;
		this.id = id;
		this.isStatic = isStatic;
		this.isFinal = isFinal;
	}

	public Identifier getId() {
		return id;
	}
	
	public VarType getVarType() {
		return this.varType;
	}
	
	public Modifier getModifier() {
		return this.modif;
	}
	
	public boolean getIsStatic() {
		return this.isStatic;
	}
	
	public boolean getIsFinal() {
		return this.isFinal;
	}
	
	@Override
	public Object accept(IASTVisitor visitor) {
		return visitor.visit(this);
	}

}
